package com.fayuan.nocv.controller;

import com.fayuan.nocv.service.LineTrendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/lineTrend")
public class LineTrendController {

    @Autowired
    private LineTrendService lineTrendService;
    @GetMapping("/queryLine")
    @ResponseBody
    public Map<String, List<Object>>queryLine(){
    return lineTrendService.queryLine();
    }
}
